package com.test.test_rest.miner_pool.domain.gen;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class SuperMinerSymbolLog implements Serializable {
    private Integer id;

    /**
     * 交易对
     */
    private String symbol;

    /**
     * 币价
     */
    private BigDecimal amount;

    /**
     * 日均收益
     */
    private BigDecimal dailyProfit;

    /**
     * 全网算力
     */
    private String allPower;

    /**
     * 难度
     */
    private String difficulty;

    /**
     * 难度跌浮
     */
    private BigDecimal difficultyDiff;

    /**
     * 日期
     */
    private String dayTime;

    private Date createTime;

    private Date updateTime;

    /**
     * 算力跌浮
     */
    private BigDecimal allPowerDiff;

    /**
     * 币价跌浮
     */
    private BigDecimal amountDiff;

    /**
     * 区块奖励
     */
    private String allBlock;

    /**
     * json内容
     */
    private String content;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 交易对
     */
    public String getSymbol() {
        return symbol;
    }

    /**
     * 交易对
     */
    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    /**
     * 币价
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * 币价
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * 日均收益
     */
    public BigDecimal getDailyProfit() {
        return dailyProfit;
    }

    /**
     * 日均收益
     */
    public void setDailyProfit(BigDecimal dailyProfit) {
        this.dailyProfit = dailyProfit;
    }

    /**
     * 全网算力
     */
    public String getAllPower() {
        return allPower;
    }

    /**
     * 全网算力
     */
    public void setAllPower(String allPower) {
        this.allPower = allPower;
    }

    /**
     * 难度
     */
    public String getDifficulty() {
        return difficulty;
    }

    /**
     * 难度
     */
    public void setDifficulty(String difficulty) {
        this.difficulty = difficulty;
    }

    /**
     * 难度跌浮
     */
    public BigDecimal getDifficultyDiff() {
        return difficultyDiff;
    }

    /**
     * 难度跌浮
     */
    public void setDifficultyDiff(BigDecimal difficultyDiff) {
        this.difficultyDiff = difficultyDiff;
    }

    /**
     * 日期
     */
    public String getDayTime() {
        return dayTime;
    }

    /**
     * 日期
     */
    public void setDayTime(String dayTime) {
        this.dayTime = dayTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 算力跌浮
     */
    public BigDecimal getAllPowerDiff() {
        return allPowerDiff;
    }

    /**
     * 算力跌浮
     */
    public void setAllPowerDiff(BigDecimal allPowerDiff) {
        this.allPowerDiff = allPowerDiff;
    }

    /**
     * 币价跌浮
     */
    public BigDecimal getAmountDiff() {
        return amountDiff;
    }

    /**
     * 币价跌浮
     */
    public void setAmountDiff(BigDecimal amountDiff) {
        this.amountDiff = amountDiff;
    }

    /**
     * 区块奖励
     */
    public String getAllBlock() {
        return allBlock;
    }

    /**
     * 区块奖励
     */
    public void setAllBlock(String allBlock) {
        this.allBlock = allBlock;
    }

    /**
     * json内容
     */
    public String getContent() {
        return content;
    }

    /**
     * json内容
     */
    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", symbol=").append(symbol);
        sb.append(", amount=").append(amount);
        sb.append(", dailyProfit=").append(dailyProfit);
        sb.append(", allPower=").append(allPower);
        sb.append(", difficulty=").append(difficulty);
        sb.append(", difficultyDiff=").append(difficultyDiff);
        sb.append(", dayTime=").append(dayTime);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", allPowerDiff=").append(allPowerDiff);
        sb.append(", amountDiff=").append(amountDiff);
        sb.append(", allBlock=").append(allBlock);
        sb.append(", content=").append(content);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperMinerSymbolLog other = (SuperMinerSymbolLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSymbol() == null ? other.getSymbol() == null : this.getSymbol().equals(other.getSymbol()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getDailyProfit() == null ? other.getDailyProfit() == null : this.getDailyProfit().equals(other.getDailyProfit()))
            && (this.getAllPower() == null ? other.getAllPower() == null : this.getAllPower().equals(other.getAllPower()))
            && (this.getDifficulty() == null ? other.getDifficulty() == null : this.getDifficulty().equals(other.getDifficulty()))
            && (this.getDifficultyDiff() == null ? other.getDifficultyDiff() == null : this.getDifficultyDiff().equals(other.getDifficultyDiff()))
            && (this.getDayTime() == null ? other.getDayTime() == null : this.getDayTime().equals(other.getDayTime()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getAllPowerDiff() == null ? other.getAllPowerDiff() == null : this.getAllPowerDiff().equals(other.getAllPowerDiff()))
            && (this.getAmountDiff() == null ? other.getAmountDiff() == null : this.getAmountDiff().equals(other.getAmountDiff()))
            && (this.getAllBlock() == null ? other.getAllBlock() == null : this.getAllBlock().equals(other.getAllBlock()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSymbol() == null) ? 0 : getSymbol().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getDailyProfit() == null) ? 0 : getDailyProfit().hashCode());
        result = prime * result + ((getAllPower() == null) ? 0 : getAllPower().hashCode());
        result = prime * result + ((getDifficulty() == null) ? 0 : getDifficulty().hashCode());
        result = prime * result + ((getDifficultyDiff() == null) ? 0 : getDifficultyDiff().hashCode());
        result = prime * result + ((getDayTime() == null) ? 0 : getDayTime().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getAllPowerDiff() == null) ? 0 : getAllPowerDiff().hashCode());
        result = prime * result + ((getAmountDiff() == null) ? 0 : getAmountDiff().hashCode());
        result = prime * result + ((getAllBlock() == null) ? 0 : getAllBlock().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        return result;
    }
}